<?php

namespace App\Console\Commands;
use Illuminate\Support\Facades\Log;
use Illuminate\Console\Command;

class Test extends Command
{
    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'Test';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = '撒旦法';

    /**
     * Create a new command instance.
     *
     * @return void
     */
    public function __construct()
    {
        parent::__construct();
    }

    /**
     * Execute the console command.
     *
     * @return mixed
     */
    public function handle()
    {
    	$url = "http://localhost:7072/api/task";
    	$data = curlDSRW($url  );
    	
    	//urldecode(http_build_query($data) .
    	Log::info('定时任务：操作成功'.is_array($data)?json_encode($data, JSON_UNESCAPED_SLASHES|JSON_UNESCAPED_UNICODE):$data . "\r\n \r\n") ; 
    	 
    	return 0;
    	
    	
    }
}
